<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-pre&v-cloak&v-once实例</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>v-pre&v-cloak&v-once实例</h1>
    <hr>
    <div id="app">
        <!--v-pre不进行渲染v-cloa渲染完成后显示v-once只渲染一次-->
        <div v-pre>{{message}}</div>
        <div v-cloak>渲染完成后，才显示!</div>
        <div v-once>{{message}}</div>
        <div><input type="text" v-model="message"></div>
        <div>{{message}}</div>
    </div>

    <script type="text/javascript">
        var app = new Vue({
            el:'#app',
            data:{
                message:'hello world!'
            }

        })
    </script>
</body>
</html>